#include <STC15F2K60S2.H>


void led_sidp(unsigned char ader,enabled )
{
static	unsigned char temp = 0x00;
static	unsigned char temp_old = 0xff;	
	if(enabled)
	temp |=0x01<<ader;
	else
	temp &= ~(0x01<<ader);	
	if(temp !=temp_old)
	{
		P0 = ~temp;
		P2 = P2& 0X1F | 0X80;
		P2 &= 0X1F;
		temp_old = temp;
	
	
	}




}